// ref 就是一个组合式API  
import { ref } from 'vue';
export function useShow() {
    const show = ref(true);
    const toggle = () => {
        show.value = !show.value;
    };
    return { show, toggle };
}